#include "PerfDevil.hpp"

// TEST DevIL functions

long long int PerfDevil::temps_execution_iluAlienify(){
  auto debut(std::chrono::system_clock::now());
  iluAlienify();
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluBlurAvg(ILint i){
  auto debut(std::chrono::system_clock::now());
  iluBlurAvg(i);
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluBlurGaussian(ILint i){
  auto debut(std::chrono::system_clock::now());
  iluBlurGaussian(i);
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluContrast(ILfloat i){
  auto debut(std::chrono::system_clock::now());
  iluContrast(i);
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluEqualize(){
  auto debut(std::chrono::system_clock::now());
  iluEqualize();
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluGammaCorrect(ILfloat i){
  auto debut(std::chrono::system_clock::now());
  iluGammaCorrect(i);
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluNegative(){
  auto debut(std::chrono::system_clock::now());
  iluNegative();
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluNoisify(ILfloat i){
  auto debut(std::chrono::system_clock::now());
  iluNoisify(i);
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluPixelize(ILuint i){
  auto debut(std::chrono::system_clock::now());
  iluPixelize(i);
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}

long long int PerfDevil::temps_execution_iluSharpen(ILfloat i, ILuint j){
  auto debut(std::chrono::system_clock::now());
  iluSharpen(i, j);
  auto fin(std::chrono::system_clock::now());
  return (fin - debut).count();
}




